package com.junzhiit.nengji.app.web.util;

public final class Constants {

	public static final String SUCCESSMSG = "Success";
	public static final String FAILEDMSG = "Failed";
	public static final String ACCESSTOKEN = "accessToken";
	public static final String DEVICEID = "deviceId";
	public static final String DELIMITER = ".";
	public static final String USERID = "userId";
	public static final String SESSIONID = "SESSIONID";
	public static final String CSRFTOKEN = "CSRFToken";
	public static final String URL_ANALYSIS = "urlAnalysis";
	public static final String CLIENT_REF = "clientRef";
	public static final String TS = "ts";
	public static final String EMAIL = "email";

	public static final String LOGIN_TYPE = "loginType";
	public static final String PWD = "PASSWORD";
	public static final String PWD_FORMAT_REGULAR = "[a-zA-Z0-9 \\?_@'.-]{6,36}$";
	public static final String LANG = "lang";
	public static final String UTF8 = "UTF-8";
	public static final String EXCEPTION = "exception";
	public static final String CONTENT_TYPE_SVG = "image/svg+xml";
	public static final String CONTENT_TYPE_HTML = "text/html";
	public static final String CONTENT_TYPE_JSON = "application/json; charset=UTF-8";
	public static final String ERROR_PATH = "/error";
	public static final String PAGE_NOT_FOUND_PATH = "/pageNotFound";
	public static final String AMOUNT_FORMAT = "0.00";
	public static final String SEQUENCE_TICKET_NAME = "ticket";
	public static final String SEND_UPDATE_TICKET_EMAIL_DEFAULT_RECEIVER_NAME = "ALL";
	public static final String TICKET_OWNER_NAME_DEFAULE = "customer";
	public static final String CCB_TICKET_REPORT = "ccb_ticket_report";
	public static final String EXPORT_TICKET_DETAIL = "ticket_detail";
	public static final String TEMP_FILE_PREFIX = "PayMe-";
	public static final String TEMP_FILE_SUFFIX = ".tmp";
	public static final String PUSH_MESSAGE_TITLE = "msgtitle";
	public static final String HTTP_HEADER_REGULAR = "[^\\\\ _a-zA-Z0-9-.,:\"=()+/]";
	public static final String PUSH_GO = "go";
	public static final String PUSH_GO_GAME = "gm";
	public static final String PAYME = "PayMe";

	public final static String SHOP_URL ="pages/shop/shop";//店铺路径
	
	//系统分类等级配置
	public static final Integer SYSTEM_TYPE_LEVEL = 2;
	
	public final static String TEMPLATE_URL =  "view/pages/index/index";
	
	public static final String DATA_WHITE_PNG = "/data/upload/white.png";
	
	public static final String MALL_NAME_KEY = "乐鸽分享链";
	public static final String EMAIL_SUBJECT_FIND_PWD_KEY = "找回密码验证码";
	public static final String EMAIL_BODY_CODE_TEMPLATE_KEY = "乐鸽分享链提醒您，本次验证码:{code}，{time}分钟內有效，如非本人操作，请不要告知他人";

	public static final String ROOT_VALUE = "root";

	public static final String[] BASE_FIELD = { "id", "createdTime", "createdBy", "updatedTime", "updatedBy",
			"isDelete" };
	
	// end to end encryption
	public static final String ENC_DATA = "encData";
	public static final String ALGORITHM_RSA = "RSA";
	public static final String ALGORITHM_AES = "AES";

	public static final String MESSAGE_JSON = "messageJson";

	public static final String DEFAULT_SPIT = ",";

	public static final String TYPE_FULLNAME_SEPARATOR = " > ";
	public static final Integer TYPE_SORT_ONE = 1;
	
	public static final String CHECK_COUNT="3";

	// wechat
	public static final String CHARACTER = "UTF-8";

	public static final String DOMAIN_KEY = "domain";

	public static final String CHECK_CODE = "checkCode";

	public static final String SESSION_USER_KEY = "user";

	public static final String KEY_PROPERTIES_FOR_SYSTEM = "key/system";

	public static final String WEB_CONFIGURE = "web-configure.properties";

	public static final String KEY_PKCS12_FOR_WECHAT = "/data/key/apiclient_cert.p12";

	public static final String SYSTEM_KEY_FOR_PASSOWRD = "aes.password";

	public final static String URL_QRCODE_CREATE = "https://api.weixin.qq.com/wxa/getwxacode?access_token=";
	
	public static final String WECHAT_FOR_SCENE = "wechat.scene";

	public static final String WECHAT_FOR_CODE = "wechat.code";

	public static final String WECHAT_WAP_DOMAIN = "wechat.wap.domain";

	public static final String WECHAT_KEY_FOR_APPID = "wechat.appid";

	public static final String WECHAT_KEY_FOR_SECRET = "wechat.secret";

	public static final String WECHAT_KEY_FOR_TOKEN = "wechat.token";

	public static final String WECHAT_KEY_FOR_ENCODING = "wechat.encoding";

	public static final String WECHAT_KEY_FOR_PARTNER = "wechat.partner";

	public static final String WECHAT_KEY_FOR_URL_NOTIFY = "wechat.url.notify";

	public static final String JOINPAY_KEY_FOR_URL_NOTIFY = "joinpay.url.notify";

	public static final String JOINPAY_KEY_FOR_URL_NOTIFY_REFUND = "joinpay.url.notify.refund";

	public static final String JOINPAY_KEY_FOR_URL_RETURN = "joinpay.url.return";

	public static final String WECHAT_ATTACH_FOR_RECHARGE = "RECHARGE";

	public static final String WECHAT_ATTACH_FOR_LOGISTICS = "LOGISTICS";

	public static final String WECHAT_ATTACH_FOR_MEMBER = "MEMBER";

	public static final String TYPE_ROOT = "root";

	public static final String POSTAGE_KEY = "POSTAGE_PARAMS_KEY";

	public static final String SELL_SETING_KEY = "sellSeting";

	public static final String MEMBER_PARENT_ID_ROOT = "root";

	public static final String APPID = "wx9dbc69ffa5b66a21";
	
	public static final String URL_FLOW_HISTORY="https://api.weixin.qq.com/datacube/getweanalysisappiddailyvisittrend?access_token=";
	
	public static final String APPSECRET = "d9d432f4cb13f559360e2170e3fa7727";
	
	public static final String UPLOAD_TEMP_PATH = "upload.temp.path";
	
	public static final String TRANSACTION_ANALYSIS_STATISTICAL_REPORT_NAME ="交易分析统计";
	
	public static final String TRANSACTION_ANALYSIS_REPORT_NAME ="交易分析详情";
	
	public static final String GOODS_HISTORY_ANALYSIS_REPORT_NAME ="商品分析";
	
	public static final String GOODS_HISTORY_ONFO_ANALYSIS_REPORT_NAME ="单品分析";
	
	public static final String SHOP_HISTORY_ANALYSIS_REPORT_NAME ="店铺分析";
	
	public static final String CONSUME_RECORD_REPORT_NAME = "消费记录";
	
	public static final String CONSUME_RANKING_REPORT_NAME = "消费排行";
	
	public static final String USER_CONSUME_RECORD_REPORT_NAME= "用户消费记录";
	
	public static final String FINANCIAL_STAEMENT = "财务报表";
	
	public static final String SHOP_GOODS_LIST_NAME="店铺商品列表";
	
	public static final String ORDERS_DEATAIL="订单详情";
	
	public static final String CHAIN_GOODS_LIST_NAME="品牌商品列表";
	
	public static final String CHAIN_HISTORY_ANALYSIS_REPORT_NAME="品牌分析";
	
	public static final int HOURS = 24;//24小时
	
	public static final String ACCESS_TOKEN_SESSION="sessionId";
	
	public static final String SYSTEM_ID="systemId";
	
	public static final int ZERO=0;
	
	private Constants() {
	};

	public static class RoleKey {
		public static final String ROLE_AUTHENTICATED = "ROLE_AUTHENTICATED";
		public static final String ROLE_ANONYMOUS = "ROLE_ANONYMOUS";
		public static final String ROLE_ADMIN = "ROLE_ADMIN";
		public static final String ROLE_USER = "ROLE_USER";
	}

	public static class ConfigKey {
		// admin config
		public static final String HSM_ACTIVE_SLOT = "hsm.active.slot";
		public static final String HSM_PARTITION1_PWD = "hsm.partition1.pwd";

		// encrypted password
		// datasource
		public static final String DATASOURCE_PWD = "spring.datasource.pwd";
		// quartz datasource
		public static final String QUARTZ_DATASOURCE_PWD = "quartz.datasource.pwd";

		// REDIS (RedisProperties)
		public static final String REDIS_PWD = "spring.redis.pwd";

		// mail
		public static final String EMAIL_PWD = "spring.mail.pwd";

		// SMS-infobib
		public static final String SMS_PWD = "sms.otp.pwd";

		// execl cron
		public static final String PGP_PWD = "pgp.pwd";
		public static final String REWARD_EXCEL_OPEN_PWD = "rewards.execl.open.pwd";

		// data keystore
		public static final String CHERRYPICKS_DATA_ENCRYPTION_KEY = "cherrypicks.data.encryption.key";
		public static final String CHERRYPICKS_DATA_ENCRYPTION_IV = "cherrypicks.data.encryption.iv";
	}
}

